﻿@model IEnumerable<Week4Day2CraigsListApp.Models.Products>
@{
    ViewBag.Title = "Product List";
}

<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <h1>Craig's List App</h1>
        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table">                
                    <tr>
                        <th>Seller ID</th>
                        <th>Product</th>
                        <th></th>
                    </tr>                
                
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.SellerId</td>
                        <td>@item.ProductTitle</td>
                        <td><input type="button" class="btn" onclick="" value="Details" /></td>
                    </tr>
                }
            </table>
        </div>
    </div>
</div>